/* 
订单
*/

import request from '@/utils/request'

//获取订单列表
export const getorderList = (params) => {
    return request({
        method: 'get',
        url: '/order/list',
        params
    })
}

// 修改订单
export const editorder = (data) => {
    return request({
        method: 'post',
        url: '/order/edit',
        data
    })
}

// 获取首页数据
export const getHomeData = (params) => {
    return request({
        method: 'get',
        url: '/order/totaldata',
        params
    })
}

// 获取订单数据
export const getgoodsData = (params) => {
    return request({
        method: 'get',
        url: '/order/totaldata',
        params
    })
}